import './App.css'
import {AppRoutes} from "@/routs";
import {BrowserRouter} from "react-router-dom";
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {Toaster} from "@/components/ui/sonner"
import {GLOBAL_CONFIG} from "@/global-config";

function App() {
    return (
        <QueryClientProvider client={new QueryClient()}>
            <BrowserRouter basename={GLOBAL_CONFIG.publicPath}>
                <div className="App">
                    <AppRoutes/>
                </div>
                <Toaster/>
            </BrowserRouter>
        </QueryClientProvider>
    )
}

export default App